package com.klangner.go.app.rules;



/* GoGameEvent represents an event occured in a game of Go */
public class GoGameEvent extends java.util.EventObject{

  public GoGameEvent(Object source, BoardModel oldPosition, BoardModel newPosition) {
    super(source);

    this.oldPosition = oldPosition;
    this.newPosition = newPosition;
  }

  public boolean getIsGameOver() {return isGameOver;}

  public void setIsGameOver(boolean value) { isGameOver = value;}

  public BoardModel getOldPosition() {return oldPosition;}

  public void setOldPosition(BoardModel value) {oldPosition = value;}

  public BoardModel getNewPosition() {return newPosition;}

  public void setNewPosition(BoardModel value) {newPosition = value;}

  private boolean isGameOver;
  private BoardModel oldPosition;
  private BoardModel newPosition;
}